import request from '@/utils/request'

// 查询商品评价列表
export function listYZMcomments(query) {
  return request({
    url: '/transaction/YZMcomments/list',
    method: 'get',
    params: query
  })
}

// 查询商品评价详细
export function getYZMcomments(id) {
  return request({
    url: '/transaction/YZMcomments/' + id,
    method: 'get'
  })
}

// 新增商品评价
export function addYZMcomments(data) {
  return request({
    url: '/transaction/YZMcomments',
    method: 'post',
    data: data
  })
}

// 修改商品评价
export function updateYZMcomments(data) {
  return request({
    url: '/transaction/YZMcomments',
    method: 'put',
    data: data
  })
}

// 删除商品评价
export function delYZMcomments(id) {
  return request({
    url: '/transaction/YZMcomments/' + id,
    method: 'delete'
  })
}
